package com.jd.nbd.strategy05;

/**
 * Created by liyue on 2017/8/24
 */
public class CheckGenderRule implements Rule {
  @Override
  public boolean doValidate(Person person) {
    if (person.getGender() == 0){
      return false;
    }
    return true;
  }
}
